<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;

class MemberAddress extends BaseModel
{
    use SoftDeletes;

    public $timestamps = false;
    public $table = 'member_address';
    static $unguarded = true;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';

    /**
     * 获取当前时间
     *
     * @return int
     */
    public function freshTimestamp()
    {
        return time();
    }

    /**
     * 避免转换时间戳为时间字符串
     *
     * @param DateTime|int $value
     * @return DateTime|int
     */
    public function fromDateTime($value)
    {
        return $value;
    }
}
